-- GENERATED SPELL FOR [Onslaught Harbor Guard] --


function spell0_29330(pUnit, Event) --@Frost Shot,n/a--
pUnit:FullCastSpellOnTarget(18802,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_29330', 10303, 1)
end

function spell1_29330(pUnit, Event) --@Shoot,n/a--
pUnit:FullCastSpellOnTarget(6660,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_29330', 617, 1)
end

function Sorts_29330(pUnit, Event)
local choix_sorts_29330 = math.random(0, 1)
if choix_sorts_29330 == 0 then
pUnit:RegisterEvent('spell0_29330', 1, 1)
end
if choix_sorts_29330 == 1 then
pUnit:RegisterEvent('spell1_29330', 1, 1)
end
end

function mob29330_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_29330', math.random(1500, 3000), 1)
end

function mob29330_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob29330_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob29330_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(29330, 1, 'mob29330_Action')
RegisterUnitEvent(29330, 2, 'mob29330_Leave')
RegisterUnitEvent(29330, 3, 'mob29330_Kill')
RegisterUnitEvent(29330, 4, 'mob29330_Die')
